package com.dxh.dao;

import com.dxh.pojo.User;
import org.dom4j.DocumentException;

import java.beans.PropertyVetoException;
import java.util.List;

/**
 * @author https://github.com/CoderXiaohui
 * @Description
 * @Date 2020-11-08 13:50
 */
public interface IUserDao {
    //查询所有用户
    public List<User> findAll() throws Exception;

    //根据条件进行查询
    public User findByCondition(User user) throws Exception;

    //增加用户
    public int insertUser(User user) throws PropertyVetoException, DocumentException;

    //删除用户
    public int deletetUserByUid(User user);

    //修改用户的名字
    public int updateUser(User user);

}
